﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Automobile.service.BLL;
using Automobile.service.Model;
using Automobile.service.Common;
namespace Automobile.service.UI.Hander
{
    /// <summary>
    /// PurchaseByID 的摘要说明
    /// </summary>
    public class PurchaseByID : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            PurchaseBLL bll = new PurchaseBLL();
            context.Response.ContentType = "text/plain";
            int id = Convert.ToInt32(context.Request["id"]);
            string str = bll.GetPurchaseByid(id);
            context.Response.Write(bll.GetPurchaseByid(id));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}